package com.dmz.workflow.util;

import com.echronos.commons.Result;
import com.echronos.mcs.api.feign.IPrefectureFeign;
import com.echronos.mcs.api.req.UpdatePrefectureCallbackReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class CallBackComponent {

    @Autowired
    private IPrefectureFeign prefectureFeign;

    public Result circlePriceCallBack(String processInstanceId, Integer status, String comment) {
        UpdatePrefectureCallbackReq req = new UpdatePrefectureCallbackReq();
        req.setInstanceId(processInstanceId);
        req.setStatus(status);
        req.setComment(comment);
        return prefectureFeign.callbackPrefecture(req);
    }
}
